#include "stdafx.h"
#include "CppUnitTest.h"

using namespace Microsoft::VisualStudio::CppUnitTestFramework;

namespace NativeTest_Question8
{
	using namespace std;
	
	bool IsSubString(string s1, string s2)
	{
		if(s1.find(s2) != string::npos)
			return true;
		else
			return false;
	}

	bool IsRatated(string s1, string s2)
	{
		string s = s1 + s1;
		return  IsSubString(s, s2);
	}
}

namespace NativeTest
{
	using namespace NativeTest_Question8;
	TEST_CLASS(Question8)
	{
	public:
		
		TEST_METHOD(Question8_TestMethod1)
		{
			bool r = IsRatated("waterbottle","erbottlewat");
			Assert::IsTrue(r);

		}

	};
}